package org.feng.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.feng.base.entity.BaseEntity;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author feng
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_log")
public class Log extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField("username")
    private String username;

    @TableField("url")
    private String url;

    @TableField("ip")
    private String ip;

    @TableField("browser")
    private String browser;

    @TableField("remark")
    private String remark;

    @TableField("request_time")
    private String requestTime;

    @TableField("method")
    private String method;

    @TableField("parameters")
    private String parameters;

    @TableField("request_method")
    private String requestMethod;

    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("dept_id")
    private Long deptId;

    @TableField("log_type")
    private Integer logType;

}
